<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>     
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<link rel="stylesheet" href="${host_url}/css/app/common.css">
<link rel="stylesheet"  href="${host_url}/css/app/profit.css">
<link rel="stylesheet"  href="${host_url}/css/app/dropload.css">
<script src="${host_url}/js/app/jquery.min.js"></script>
<script src="${host_url}/js/app/dropload.min.js"></script>
<script type="text/javascript">
  document.getElementsByTagName('html')[0].style.fontSize = document.documentElement.clientWidth/50 + 'px';
  </script>
<script type="text/javascript">
var os="${os}";
<c:if test="${os=='ios'|| os=='android'}">
  function fn_goConnPage(id){
	  var withdrawdepositlogone_url = $("#withdrawdepositlogone_url").val();
      window.webkit.messageHandlers.ios_open_page.postMessage('WKViewController:::url->'+withdrawdepositlogone_url+'?withdrawDeposit_id='+id+':::webTitle->交易明细:::isRefresh->YES');
  }  
</c:if>
</script>
<title>交易明细</title>
</head>
<body> 
<input type="hidden"  id="withdrawdepositlogone_url" value="${withdrawdepositlogone_url }">
    <p class="clearfix title-2">
    	<c:if test="${LogCashDrawOne.bill_type == 1}">
	        <span class="leftArea">出账金额</span>
	        <span class="rightArea">${LogCashDrawOne.free_cash}</span>
        </c:if>
    	<c:if test="${LogCashDrawOne.bill_type == 2}">
	        <span class="leftArea">入账金额</span>
	        <span class="rightArea enter">${LogCashDrawOne.free_cash}</span>
        </c:if>        
    </p>
    <ul class="content2">
        <li class="clearfix">
            <p class="leftArea" style="font-size:14px;">类<span>站位</span>型</p>
            <p class="rightArea" style="font-size:14px;">
            	<c:if test="${LogCashDrawOne.bill_type == 1}">余额提现</c:if>
            	<c:if test="${LogCashDrawOne.bill_type == 2}">退款</c:if>
           	</p>
        </li>
        <li class="clearfix">
            <p class="leftArea" style="font-size:14px;">状<span>站位</span>态</p>
            <p class="rightArea" style="font-size:14px;">
	            <c:if test="${LogCashDrawOne.bill_type == 1}">
	               <c:if test="${LogCashDrawOne.state ==2 and LogCashDrawOne.log_cash_draw_state == 0}">提现中</c:if>
	               <c:if test="${LogCashDrawOne.state == 2 and LogCashDrawOne.log_cash_draw_state == 1}">提现成功</c:if>  
		           <c:if test="${LogCashDrawOne.state ==2 and LogCashDrawOne.log_cash_draw_state == 2}">提现失败</c:if>   
		        </c:if>  
		        <c:if test="${LogCashDrawOne.bill_type == 2}">已退款</c:if> 
            </p>
        </li>
        <li class="clearfix">
            <p class="leftArea" style="font-size:14px;">创建时间</p>
            <p class="rightArea" style="font-size:14px;">${LogCashDrawOne.create_time}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea" style="font-size:14px;">交易单号</p>
            <p class="rightArea" style="font-size:14px;">${LogCashDrawOne.no}</p>
        </li>      
        <li class="clearfix">
            <p class="leftArea" style="font-size:14px;">摘<span>站位</span>要</p>
            <p class="rightArea" style="font-size:14px;">${LogCashDrawOne.remark}</p>
        </li>
        <c:if test="${LogCashDrawOne.bill_type != 2}">
	        <li class="clearfix">
	            <p class="leftArea bor-l" style="font-size:14px;">提现账户</p>
	            <p class="rightArea" style="font-size:14px;">${LogCashDrawOne.draw_account}（${LogCashDrawOne.bank_name}）</p>
	        </li>
        </c:if> 
        <c:if test="${(LogCashDrawOne.log_cash_draw_state == 2 and LogCashDrawOne.bill_type == 1) or (LogCashDrawOne.bill_type == 2)}">
	        <li class="clearfix">
	            <p class="leftArea bor-l" style="font-size:14px;">失败原因</p>
	            <p class="rightArea" style="font-size:14px;">${LogCashDrawOne.reason}</p>
	        </li>
	        <li class="clearfix">
	            <p class="leftArea bor-l" style="font-size:14px;">关联交易</p>
	        <c:if test="${'ios'==os}">
	            <p class="rightArea col-" onclick="fn_goConnPage(${LogCashDrawOne.page_conn_id})" style="font-size:14px;">${LogCashDrawOne.conn_no}</p>
	        </c:if>
	         <c:if test="${'wechat'==os ||'web'==os}">
		    	<p class="rightArea col-" id='{"name":"weOpenDetailPage", "params": {"withdrawDeposit_id":${LogCashDrawOne.page_conn_id }}}' style="font-size:14px;">${LogCashDrawOne.conn_no}</p>
		    </c:if>
		    <c:if test="${'android'==os}">
		    	<p  style="font-size:14px;" class="rightArea col-" onclick="android.startUrl('交易明细','${withdrawdepositlogone_url}','withdrawDeposit_id->${LogCashDrawOne.page_conn_id}')">${LogCashDrawOne.conn_no}</p>
		    	
		    </c:if>
	        </li>	                 
        </c:if>       
    </ul>
</body>
</html>